package com.example.mybatisplusdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplusdemo.model.domain.Merchant;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2025-07-04
 */
public interface MerchantMapper extends BaseMapper<Merchant> {

    boolean freezeById(@Param("id") Long id);

    boolean unfreezeById(@Param("id") Long id);

    Page<Merchant> listMerchants(Page<Merchant> page, @Param("merchant")Merchant merchant);
}
